package com.niiwoo.civet.trade.constant;

/**
 *
 * 借款流程mq相关定义
 * @Author LiJian
 * @date 2018/4/17
 */
public class LoanFlowMqConstant {

    public interface Exchange {
        String LOAN_FLOW_EXCHANGE = "loan_flow_exchange";
    }

    public interface Queue {
        String LOAN_DATA_BACK_FLOW_QUEUE = "loan_data_back_flow_queue"; // 借款相关数据回流
        String AUTH_STATUS_CHECK_QUEUE = "auth_status_check_queue"; // 授权状态检测
        String RISK_INFO_HANDLE_QUEUE = "risk_info_handle_queue"; // 12项风险规则处理
        String LOAN_ANTI_FRAUD_QUEUE = "loan_anti_fraud_queue"; // 借款反欺诈
        String LOAN_LIMIT_SCORE_QUEUE = "loan_limit_score_queue"; // 额度评分卡
        String LOAN_TE_LIMIT_SCORE_QUEUE = "loan_te_limit_score_queue"; // 借款提额额度评分卡
        String LOAN_SYSTEM_AUDIT_QUEUE = "loan_system_audit_queue"; // 系统审核
        String PORTRAIT_AUTH_QUEUE = "portrait_auth_queue"; // 肖像认证
        String MANUAL_AUDIT_QUEUE = "manual_audit_queue"; // 人工审核
        String PROJECT_TO_BANK_QUEUE = "project_to_bank"; // 上标(自动审核开关开启)
    }

    public static String getRoutingKey(String exchange, String queue) {
        return exchange + "." + queue;
    }
}
